const Router = require('@koa/router')
const router = new Router({
  prefix: '/api/v1/article'
})
const articleController = require('../controllers/articleController')

// 文章相关路由
router.post('/create', articleController.create)
router.post('/update', articleController.update)
router.get('/delete', articleController.delete)
router.get('/findOne', articleController.findOne)
router.get('/findAll', articleController.findAll)

module.exports = router